<template>
  <div class="input-box">
    <div class="title">价格：</div>
    <InputNumber v-model="value" placeholder="请输入数字" clearable @change="handleChange" />
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import { InputNumber } from '..';

const value = ref('');

const handleChange = (val: string) => {
  console.log(val, 'handleChange');
};
</script>

<style lang="scss" scoped>
.input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: 10px;

  .title {
    width: 60px;
  }
}
</style>
